package com.bwie.mapper;/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.mapper
 * @Project：zg6_yuekao
 * @name：ChargingMapper
 * @Date：2024/5/17 12:35
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.common.domain.ChargingStation;
import com.bwie.common.domain.Vehicle;
import com.bwie.common.domain.request.ChargingRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author：ShenJiaFeng
 * @Package：com.bwie.mapper
 * @Project：zg6_yuekao
 * @name：ChargingMapper
 * @Date：2024/5/17 12:35
 * @Description:
 */
@Mapper
public interface ChargingMapper extends BaseMapper<ChargingStation> {
    List<ChargingStation> chargingList(ChargingRequest chargingRequest);


    List<ChargingStation> selectChargingList();

    //收藏
    void updStatus(@Param("chargingId") Long chargingId);
    //取消收藏
    void updStatusTwo(@Param("chargingId") Long chargingId);


    //设置车辆状态为默认
    void updateVehicleStatus(Vehicle vehicle);

    //取消默认
    void updateVehicleStatusTwo(Vehicle vehicle);

}
